//
//  EncryptData.h
//  ebook
//
//  Created by 吴超飞 on 16/9/6.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CommonCrypto/CommonCryptor.h>

@interface EncryptData : NSObject

//解码
+(NSDictionary *)decryptData:(NSData *)data;

+(void)testDecrypt;
+(void)decryptBookfile;

+(void)writeToFile:(NSData *)buffer;
+(NSData *)readFile;
    
//+(NSString *) encryptUseDES:(NSString *)clearText key:(NSString *)key;
//+(NSData*) decryptDataUseDES:(NSData *)cipherData key:(NSString*)key;

@end
